package org.jeecg.modules.lab.syn;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.lab.entrust.service.ILabEntrustItemsService;
import org.jeecg.modules.lab.entrust.service.ILabWscientificService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.net.MalformedURLException;
import java.util.concurrent.ExecutorService;

@Slf4j
@Component
public class ResearchSynchronization {
    @Autowired
    private ILabWscientificService labWscientificService;
    @XxlJob(value = "SyncKyJob")
    public ReturnT<String> researchSynchronization(String params) throws MalformedURLException {
        String kyStr = "";
        labWscientificService.syncKyProject(kyStr);
        return ReturnT.SUCCESS;
    }
}
